﻿@model BBICMS.WebUI.Models.LocalPasswordModel

@{
    ViewBag.Title = "修改密码";  
    ViewBag.PageTitle = ViewBag.Title + "_安全设置";
    Layout = "~/Areas/bbi_Admin/Views/Shared/_LayoutAdmin.cshtml";
}

<div class="toolbar">
    <a href="#" class="showmenu"><i class="fa fa-bars"></i></a>
    <ol class="breadcrumb">
        <li><a href="@Url.Action("Index","Home")"><i class="glyphicon glyphicon-home"></i> 控制面板</a></li>
        <li><a href="#">安全设置</a></li>
        <li class="active">@ViewBag.Title</li>
    </ol>
</div>
<div class="main-content">


    <div class="box">
        <header class="box-header">
            <h3><i class="glyphicon glyphicon-lock"></i> @ViewBag.Title</h3>
            <div class="control">
                <a href="#" class="expand"><i class="fa fa-expand"></i></a>
                <a href="#" class="compress"><i class="fa fa-compress"></i></a>
            </div>
        </header>

        <section class="box-body">
                     
               <div class="well well-sm">
                   你已使用以下身份登录: <strong>@User.Identity.Name</strong>。
               </div>


                

                @if (ViewBag.HasLocalPassword)
                {
                    @Html.Partial("_ChangePasswordPartial")
                }
                else
                {
                    @Html.Partial("_SetPasswordPartial")
                }


            @if (ViewBag.StatusMessage != null && ViewBag.StatusMessage.Length > 0)
            {
                <div class="alert alert-success">
                    @ViewBag.StatusMessage
                </div>
            }


        </section>
        <footer class="box-footer"></footer>
    </div>

    </div>


@section footer {
    <script>
        $(function () {
            $('.mainmenu>li').eq(4).addClass('nav-open').find('.submenu li').eq(0).children('a').addClass('active');
        });
    </script>

}